// <copyright file="UserDTO.cs" company="EnterpriseApi">
// Copyright (c) EnterpriseApi. All rights reserved.
// </copyright>

namespace EnterpriseApi.DTOs;

/// <summary>
/// 用户数据传输对象，用于用户数据的展示和传递
/// </summary>
public class UserDTO
{
    /// <summary>
    /// 用户唯一标识符
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 用户名
    /// </summary>
    public required string Username { get; set; }

    /// <summary>
    /// 用户邮箱
    /// </summary>
    public required string Email { get; set; }

    /// <summary>
    /// 用户手机号码
    /// </summary>
    public string? PhoneNumber { get; set; }

    /// <summary>
    /// 用户创建时间
    /// </summary>
    public DateTime CreatedAt { get; set; }

    /// <summary>
    /// 用户最后更新时间
    /// </summary>
    public DateTime? UpdatedAt { get; set; }

    /// <summary>
    /// 用户是否活跃
    /// </summary>
    public bool IsActive { get; set; }

    /// <summary>
    /// 用户角色名称
    /// </summary>
    public string RoleName { get; set; } = null!;
}